import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    redirect: '/bridge-tunnel-risk'  // 默认重定向到桥隧平台
  },
  {
    path: '/bridge-tunnel-risk',
    name: 'bridgeTunnelRisk',
    component: () => import('../views/bridgeTunnelRiskPlatform.vue')
  }
]
const router = new VueRouter({
  routes
})

export default router